package com.lanou3g.ptp.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 创建人: 武奇
 * 创建事件: 2019/8/15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DiaryDetails implements Serializable {

    private List<Student> students;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private List<Date> dateList;


    @Data
    public static class Student implements Serializable {

        private Long id;
        private String name;
        private List<Diary> list;

    }

    @Data
    public static class Diary implements Serializable {
        private Long id;
        private Date date;
    }

}
